Can't use the data from API when app just starts